﻿using System;
#if (!SILVERLIGHT)
using System.Runtime.Serialization;
#endif

namespace Microsoft.Services.Clab.UI.Mvvmc
{
#if (!SILVERLIGHT)
    [Serializable]
#endif
    public class ControllerDisposedException : ObjectDisposedException
    {
        public ControllerDisposedException()
            : base(string.Empty) { }

        public ControllerDisposedException(string objectName, string message)
            : base(objectName, message) { }

        public ControllerDisposedException(string message, Exception innerException)
            : base(message, innerException) { }

#if (!SILVERLIGHT)
        protected ControllerDisposedException(SerializationInfo info, StreamingContext context)
            : base(info, context) { }
#endif
    }
}